package com.haoze.nurseapp.dao;

import com.haoze.common.mapper.MyMapper;
import com.haoze.nurseapp.model.PuncureChannleEntity;
import com.haoze.nurseapp.vo.batch.PuncureChannleVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface PuncureChannleMapper extends MyMapper<PuncureChannleEntity> {
    List<PuncureChannleVo> selectInfoByQrCode(@Param("qrCode") String qrCode);

    List<PuncureChannleVo> selectInfoByIpatNum(@Param("ipatNum") String ipatNum);

    List<PuncureChannleEntity> selectInfoByOrderAndBatch(@Param("inpatorderdataId") String inpatorderdataId, @Param("batchNo") Integer batchNo);

    Integer selectInfoByPointInfo(@Param("inpatNum") String inpatNum, @Param("pointStr") String pointStr);

    Map<String, Object> selectUnUsedPointList(@Param("inpatNum") String inpatNum);

    void updateByQrcode(@Param("inpatorderdataId") String inpatorderdataId, @Param("batchNo") String batchNo, @Param("qrCode") String qrCode);

    void updateSpeedByInpatorderdataId(@Param("speedValue") String speedValue, @Param("inpatorderdataId") String inpatorderdataId, @Param("batchNo") Integer batchNo);

    List<PuncureChannleEntity> selectPointListByOrderId(@Param("inpatorderdataId") String inpatorderdataId, @Param("batchNo") Integer batchNo);

    List<PuncureChannleEntity> selectPointListByOrderId2(@Param("inpatorderdataId") String inpatorderdataId, @Param("batchNo") Integer batchNo,@Param("flag") String flag);

    List<PuncureChannleEntity> selectOneByOrderAndBatch(@Param("inpatorderdataId") String inpatorderdataId, @Param("batchNo") Integer batchNo);

    void updateStatusByQrcode(@Param("inpatorderdataId") String inpatorderdataId, @Param("batchNo") String batchNo, @Param("qrCode") String qrCode);

    List<PuncureChannleEntity> selectPointListById(@Param("punctureChannleId")String punctureChannleId);
}
